<?php

namespace Home\Controller;

use Think\Controller;
use Common\Controller\DefaultController;
use Admin\Model\ColumnModel;

class NoticeController extends DefaultController {
    public function notice_list(){
        $notice=M('notice');
        $nlist=$notice->where(array('display'=>1))->order('sort desc')->select();
        foreach($nlist as $key=>$val){
            $nlist[$key]['notice_content']=htmlspecialchars_decode($val['notice_content']);
        }
        $this->assign('nlist',$nlist);
        $this->display();
    }
}
